﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sapiens.at.SharePoint;
using Sapiens.at.SharePoint.Settings;
using Sapiens.at.SharePoint.Receiver;
using Microsoft.SharePoint;
using Sapiens.at.SharePoint.SQLM.Settings;

namespace Sapiens.at.SharePoint.SQLM
{
    public class FeatureReceiver : BaseFeatureReceiver
    {
        public override void FeatureActivated(SPFeatureReceiverProperties properties)
        {
            base.FeatureActivated(properties);
            Site.AllowUnsafeUpdates = true;
            Locator.RegisterImplementation<SQLMSettings>(Site, "sqlmsettings");
            Sapiens.at.SharePoint.Logging.BaseLogger bl = new Logging.BaseLogger();
            try
            {
                bl.LogToOperations("Sapiens.at.SharePoint.SQLM: SQL Match Feature successfully activated.");
                bl.TraceToDeveloper("Sapiens.at.SharePoint.SQLM: SQL Match Feature successfully activated.");
            }
            catch { }
        }

    }
}
